package cn.com.guage.guc.enume;

public enum CountDownLatchEnum {
	ONE(1, "齐"), TWO(2, "楚"), THREE(3, "燕"), FORE(4, "韩"), FINE(5, "赵"), SIT(6, "魏");

	private int retCode;
	private String retMessenger;

	public int getRetCode() {
		return retCode;
	}

	public String getRetMessenger() {
		return retMessenger;
	}

	CountDownLatchEnum(int retCode, String retMessenger) {
		this.retCode = retCode;
		this.retMessenger = retMessenger;
	}

	public static CountDownLatchEnum getMessenger(int index) {
		CountDownLatchEnum[] elemts = CountDownLatchEnum.values();
		for (CountDownLatchEnum iter : elemts) {
			if (iter.getRetCode() == index) {
				return iter;
			}
		}
		return null;
	}
}
